package cn.yyh.serviceOrder.client;

import cn.yyh.serviceOrder.domain.Pet;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

/**
 * @author 杨永航
 * @version 1.0
 * @Title: PetClient
 * @Package: cn.yyh.serviceOrder.client
 * @date 2021/7/10
 */
@FeignClient(name = "service-pet")
@Component
public interface PetClient {
    @GetMapping("/servicePet/pet/getById/{id}")
     String getById(@PathVariable("id") Long id,
                          @RequestHeader(required = true) String token);

    @PutMapping("/servicePet/pet/petOrder")
     void update(@RequestBody Pet pet,
                       @RequestHeader(required = true) String token);
}
